/**
 * 关注相关接口
 */
import myAxios from "../plugins/MyAxios.ts";

/**
 * 关注用户
 * @param userId
 */
export const followUser = (userId: number) => myAxios.put(`/follow/add/${userId}`);

/**
 * 取消关注用户
 * @param userId
 */
export const deleteFollowUser = (userId: number) => myAxios.delete(`/follow/delete/${userId}`);

/**
 * 获取当前用户列表对当前登录用户的关注状态
 */
export const getFollowStatus = (userId: number) => myAxios.get(`/follow/status/${userId}`);

/**
 * 获取当前用户列表对当前登录用户的关注状态
 */
export const getFollowList = () => myAxios.get(`/follow/list`);